public class Fan {
    static int SLOW = 1;
    static int MEDIUM = 2;
    static int FAST = 3;

    private int speed = SLOW;
    private boolean on = false;
    private double radius = 5;
    private String color = "blue";

    Fan(){

    }
    void setSpeed(int speed){
        this.speed = speed;
    }
    void setOn(boolean on){
        this.on = on;
    }
    void setRadius(double radius){
        this.radius = radius;
    }
    void setColor(String color){
        this.color = color;
    }

    int getSpeed(){
        return  speed;
    }
    boolean getOn(){
        return on;
    }
    double getRadius(){
        return  radius;
    }
    String getColor(){
        return color;
    }
    public String toString(){
        String a = "";
        if(on)
            a= speed + " " + color + " " + radius;
        else
            a = "fan is off" + " " +color +" " +radius;
        return a;
    }
}
